﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PcProject.Domain.Models.Entities
{
    /// <summary>
    /// 砍价表
    /// </summary>
    [Table("Bargain")]
    public class Bargain
    {
        [Key]
        public int BargainId { get; set; }
        /// <summary>
        /// 商品外键
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 单次最小砍价金额
        /// </summary>
        public decimal MinBargain { get; set; }
        /// <summary>
        /// 单次最大砍价金额
        /// </summary>
        public decimal MaxMargain { get; set; }
        /// <summary>
        /// 底价
        /// </summary>
        public decimal MinPrice { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Stock { get; set; }
        /// <summary>
        /// 砍价状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 活动开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 活动结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 活动添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 活动修改时间
        /// </summary>
        public DateTime UptTime { get; set; }
        /// <summary>
        /// 活动删除时间
        /// </summary>
        public DateTime DelTime { get; set; }
        /// <summary>
        /// 最小砍价次数
        /// </summary>
        public int MinSum { get; set; }

    }
}
